<#include "../common/layout.ftl"/>
<@layout>
<div width="100%" style="height: 900px;">
	<div class="dxfsqd_title">代叫订单报表</div>
	<div class="dxfsqd_shearch">
		<form method="post" action="/order/orderOtherCallReport" class="form-inline">
			<label><span>手机号码：</span><input type="text" class="input-medium" style="height: 30px"  name="cellphone" value="${cellphone?if_exists}"/></label> 
			<label><span>开始时间：</span><input type="text" class="input-medium" style="height: 30px"  name="beginDate" value="${beginDate!""}" onfocus="WdatePicker({dateFmt:'yyyy-MM-dd',readOnly:true})"/></label> 
			<label><span>结束时间：</span><input type="text" class="input-medium" style="height: 30px"  name="endDate" value="${endDate!""}" onfocus="WdatePicker({dateFmt:'yyyy-MM-dd',readOnly:true})"/></label> 
			<button type="submit" class="btn "><i></i>查询</button>
			<button type="button" class="btn btn-info" onclick="javascript:history.back();">返回</button>
		</form>
</div>

<div class="dxfsqd_table">
	<table class="table table-bordered"  align="center">
		  <tr>
		  	<th scope="col">下单人</th>
			<th scope="col">下单电话</th>
		    <th scope="col">序号</th>
			<th scope="col">日期</th>
			<th scope="col">使用人</th>
			<th scope="col">联系电话</th>
			<th scope="col">订单编号</th>
			<th scope="col">订单状态</th>
			<th scope="col">订单金额</th>
			<th scope="col">推荐提成（元）</th>
			<th scope="col">备注</th>
		  </tr>
		  <#if otherCallMap?? && otherCallMap?size gt 0>
		  <#list otherCallMap?keys as key>
		  	 <#if otherCallMap.get(key)??>
		  	   <#list otherCallMap.get(key) as order>
			       <tr align="center">
			       	  <#if order_index == 0>
			       	  	 <td rowspan="${otherCallMap.get(key)?size}" style="vertical-align: middle;">${order.real_name!""}</td>
						 <td rowspan="${otherCallMap.get(key)?size}" style="vertical-align: middle;">${order.cell_phone!""}</td>
			       	  </#if>
			      	  <td>${order_index+1}</td>
					  <td>
					  	<#if order.create_time??> 
						 ${order.create_time?string("yyyy年MM月dd日") }  
						</#if>
					  </td>
					  <td>${order.receive_name!""}</td>
					  <td>${order.receive_phone!""}</td>
					  <td>${order.id!""}</td>
					  <td>
					  	 <#list session.orderStatusTypeArray as orderStatusType>
						 	<#if orderStatusType.orderStatus == order.order_state>
						 		${orderStatusType.orderName}
						 	</#if>
						 </#list>
					  </td>
					  <td>
					  	<#if order.charges??>
					   	    ${order.charges?string(",##0.0#")}
					   <#else>
					   	    0.0
					   </#if>
					  </td>
					  <td>
					  	 ${order.callProportion}
					  </td>
					  <td>
					  	 ${order.remark!""}
					  </td>
				  </tr>
			  </#list>
			 </#if>
		  </#list>
		  </#if>
	</table>
</div>
</div>
<script type="text/javascript" src="/js/wdatePicker/WdatePicker.js"></script>

</@layout>